package notes;

/**
 * Description:
 *
 * @Author cowen
 * @Create 2023/10/18 13:44
 * @Version 1.0
 */
class ArrayDefine{
    public static void main(String[] args) {
        int[] nums = new int[]{1,2,3,4,1};
        char[] arrs = new char[]{'a','b','c','d','e'};
        double[] dbs = new double[]{11.00,12.00,13.00};
        String[] strs = new String[]{"name","age","address"};
        // 简写
        int[] nums2 = {1,2,3,4,1};
        char[] arrs2 = {'a','b','c','d','e'};
        // 数组的长度
        System.out.println(nums.length);

    }
}
